home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech's Sprocket™ / SprocketGX / Interfaces / AppleEventHandling.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-08  |  1.4 KB  |  56 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        AppleEventHandling.h
  3.  
  4.     Contains:    Minimalist support for the required and Display Manager suites
  5.                 To really support AppleScript™, we’ll do more work in here.
  6.  
  7.     Written by: Dave Falkenburg
  8.  
  9.     Copyright:    © 1993 by Dave Falkenburg, all rights reserved.
  10.  
  11.     Change History (most recent first):     
  12.  */
  13.  
  14. #ifndef        _APPLEEVENTHANDLING_
  15. #define        _APPLEEVENTHANDLING_
  16.  
  17. #ifndef        __APPLEEVENTS__
  18. #include    <AppleEvents.h>
  19. #endif
  20.  
  21. #ifndef        __OCESTANDARDMAIL__
  22. #include    <OCEStandardMail.h>
  23. #endif
  24.  
  25. #ifndef        _APPLIB_
  26. #include    "AppLib.h"
  27. #endif
  28.  
  29. #ifdef __cplusplus
  30.     extern "C" {
  31. #endif
  32.  
  33. void            InstallAppleEventHandlers(void);
  34. OSErr            CheckAppleEventForMissingParams(AppleEvent * theAppleEvent);
  35.  
  36. //    Handlers for the Required Suite:
  37.  
  38. typedef OSErr    (*EachDocumentProcPtr)(LetterDescriptor *aFile,void * param);
  39. OSErr            ForEachDocumentInList(AEDescList documentList,EachDocumentProcPtr documentProc,void * documentParam);
  40.  
  41. pascal OSErr    HandleOpenApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  42. pascal OSErr    HandleOpenDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  43. pascal OSErr    HandlePrintDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  44. pascal OSErr    HandleQuitApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  45.  
  46.  
  47. //    Display Manager:
  48.  
  49. pascal OSErr    HandleSystemConfigNotice(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  50.  
  51. #ifdef __cplusplus
  52.     }
  53. #endif
  54.  
  55. #endif
  56.